const likeService = require("../service/comment.like.server");
class MomentCommentLikeControll {
  async likeCreate(ctx, next) {
    try {
      const { comment_id } = ctx.query;
      const result = await likeService.loveCreate(comment_id);
      ctx.body = result;
    } catch (error) {
        console.log(error);
    }
  }

  async hateCreate(ctx, next) {
    try {
      const { comment_id } = ctx.query;
      const result = await likeService.hateCreate(comment_id);
      ctx.body = result;
    } catch (error) {
      console.log(error);
    }
  }
}

module.exports = new MomentCommentLikeControll();
